package org.tinygroup.lucene472;

import org.tinygroup.fulltext.UserIndexOperator;
import org.tinygroup.lucene472.builder.DynamicLuceneBuilder;

/**
 * 基于Lucene的支持多租户的操作接口(多例)
 * @author yancheng11334
 *
 */
public class LuceneUserIndexOperator extends BaseLuceneOperator implements UserIndexOperator {
    
	private String userId = null;
	private String configId = null;

	public String getUserId() {
		return userId;
	}
	
	public String getConfigId() {
		return configId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public void setConfigId(String configId) {
		this.configId = configId;
	}

	public void reset() {
		luceneBuilder = new DynamicLuceneBuilder(userId,configId);
	}

}
